<?php echo $this->render("partialhelper/locations.phtml");?>

<?php 
$this->headScript()->appendFile($this->baseUrl() . '/js/sailorbase/location_all/showLocation.js');
?>

<?php $this->headScript()->captureStart() ?>

function initialize(){
	locationmap(<?php echo $this->form->getValue('lat');?>, <?php echo $this->form->getValue('lng');?>, "<?php echo $this->form->getValue('name');?>");
}
<?php $this->headScript()->captureEnd() ?>


<?php 

$this->title = "Restaurant bearbeiten";

$this->headTitle($this->title);


if(!$this->edit){
	echo $this->form ;
}
else{
	echo "Restaurant ist aktualisiert worden.";
}